﻿#region Copyright

// All Material Copyright © 2010 Dynamic Concepts Development Corp., All Rights Reserved.
//      Portions Copyright © 1984-2009 Dynamic Concepts Development Corp., All Rights Reserved.
// For further information please contact: SoftwareSupport@dynconcepts.com
// Dynamic Concepts Development Corp.  311 W 57th St. Suite #422, New York, NY 10019

#endregion

#region Using References

using System;
using System.Xml.Serialization;

#endregion

namespace DynConDevCorp.OpenArch.SupportLibrary.Serialization
{
    internal class TypeSerializationDescriptor
    {
        #region Public Properies and Indexers

        public Type ItemType { get; set; }

        public PropertySerializationDescriptorCollection PropertyDescriptors
        {
            get { return r_PropertyDescriptors; }
        }

        public XmlTypeAttribute TypeAttribute { get; set; }

        #endregion

        #region Public Methods

        public override string ToString()
        {
            return String.Format("TypeSerializationDescriptor({0}),PropertyCount={1}", ItemType.Name, PropertyDescriptors.Count);
        }

        #endregion

        #region Instance Fields (ReadOnly)

        private readonly PropertySerializationDescriptorCollection r_PropertyDescriptors = new PropertySerializationDescriptorCollection();

        #endregion
    }
}